<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>客户数据</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
    <!-- daterange picker -->
    <link rel="stylesheet" href="../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <link rel="stylesheet" href="../../dist/css/crmstyle.css">
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- 公共头部 begin-->
    <header class="main-header">
        <!-- Logo -->
        <a href="../../index.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini">
          <b>龟米</b>
        </span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg">
          <img src="../../dist/img/icon_index.png" width="30" height="30" />
          <b>龟米管理系统</b>
        </span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">Alexander Pierce</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header" style="height: 110px;">
                                <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                            </li>
                            <!-- Menu Body -->

                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat">Profile</a>
                                </div>
                                <div class="pull-right">
                                    <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    <li>
                        <a href="#" data-toggle="control-sidebar">
                            <i class="fa fa-gears"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- 公共头部 end-->
    <!-- Left side column. contains the logo and sidebar -->
    <!-- 左侧列表导航 begin -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header"></li>
                <li class="active">
                    <a href="../../index.html">
                        <img class="fa-index" src="../../dist/img/icon_nav_01.png"/>
                        <span>首页</span>
                    </a>
                </li>
                <li class="treeview">
                    <a href="#">
                        <img class="fa-datas" src="../../dist/img/icon_nav_02.png"/>
                        <span>数据分析</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../dataanalysis/recordOfReceipts.html">
                                <i class="fa fa-circle-o"></i> 收账记录</a>
                        </li>
                        <li>
                            <a href="../dataanalysis/customerdata.html">
                                <i class="fa fa-circle-o"></i> 客户数据</a>
                        </li>

                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <!--<i class="fa fa-client"></i>-->
                        <img class="fa-client" src="../../dist/img/icon_nav_03.png"/>
                        <span>客户管理</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../customerManagement/myclient.html">
                                <i class="fa fa-circle-o"></i> 我的客户</a>
                        </li>
                        <li>
                            <a href="../customerManagement/platformCustomer.html">
                                <i class="fa fa-circle-o"></i> 平台客户</a>
                        </li>
                        <li>
                            <a href="../customerManagement/setting.html">
                                <i class="fa fa-circle-o"></i> 设置</a>
                        </li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <!--<i class="fa fa-templates"></i>-->
                        <img class="fa-templates" src="../../dist/img/icon_nav_04.png"/>
                        <span>营销管理</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../marketingManagement/templatemessage.html">
                                <i class="fa fa-circle-o"></i> 模板消息</a>
                        </li>
                        <li>
                            <a href="../marketingManagement/templateShort.html">
                                <i class="fa fa-circle-o"></i> 短信推送</a>
                        </li>
                        <li>
                            <a href="javascript:">
                                <i class="fa fa-circle-o"></i> 系统消息</a>
                        </li>
                        <li>
                            <a href="../marketingManagement/dvertisingIndex.html">
                                <i class="fa fa-circle-o"></i> 广告投放</a>
                        </li>

                    </ul>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <!-- 左侧列表导航 end -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="customer_top_box ">
                        <div class="bor-ecedef">
                            <div class="customer_top col-md-12">昨日关键指标</div>
                            <div class="col-lg-4 col-xs-6 index_litems bg-white border-r-f3">
                                <!-- small box -->
                                <div class="small-box ">
                                    <div class="recordinner">
                                        <P class="txt1">新客户</P>
                                        <p class="txt2">
                                            150
                                        </p>
                                        <p>日<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>周<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>月<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                    </div>
                                </div>
                            </div>
                            <!-- ./col -->
                            <div class="col-lg-4 col-xs-6 index_litems bg-white border-r-f3">
                                <!-- small box -->
                                <div class="small-box ">
                                    <div class="recordinner">
                                        <P class="txt1">老客户</P>
                                        <p class="txt2">
                                            150
                                        </p>
                                        <p>日<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>周<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>月<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                    </div>
                                </div>
                            </div>
                            <!-- ./col -->
                            <div class="col-lg-4 col-xs-6 index_litems bg-white">
                                <!-- small box -->
                                <div class="small-box ">
                                    <div class="recordinner">
                                        <P class="txt1">总客户</P>
                                        <p class="txt2">
                                            150
                                        </p>
                                        <p>日<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>周<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                        <p>月<i class="fa fa-fw fa-arrow-up"
                                               style="font-size: 14px;color: #02c1b2;margin: 0px 5px;"></i> 23.35%</p>
                                    </div>
                                </div>
                            </div>
                            <!-- ./col -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <!-- /.col -->
                <div class="col-md-12">
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#activity" data-toggle="tab">新客户数</a>
                            </li>
                            <li>
                                <a href="#timeline" data-toggle="tab">休眠客户数</a>
                            </li>
                            <li>
                                <a href="#thirthline" data-toggle="tab">累计客户数</a>
                            </li>
                        </ul>
                        <div class="tab-content customerdata_tabs">
                            <div class="tab-pane active" id="activity">
                                <!-- The timeline 收账分析 -->
                                <div class="row record_rows" style="background: #f4f5f9;">
                                    <!-- select -->
                                    <div class="form-group col-md-2">
                                        <select class="form-control">
                                            <option>option 1</option>
                                            <option>option 2</option>
                                            <option>option 3</option>
                                            <option>option 4</option>
                                            <option>option 5</option>
                                        </select>
                                    </div>
                                    <!-- Date range -->
                                    <div class="form-group col-md-3">
                                        <div class="input-group">
                                            <div class="input-group-addon">
                                                <i class="fa fa-calendar"></i>
                                            </div>
                                            <input type="text" class="form-control pull-right" id="reservation">
                                        </div>
                                        <!-- /.input group -->
                                    </div>
                                    <button type="button" class="btn btn-block btn-success btn-flat btn_select">按时间对比
                                    </button>
                                </div>
                                <div class="row">
                                    <section class="col-lg-12 connectedSortable">
                                        <!-- Custom tabs (Charts with tabs)-->
                                        <div class="nav-tabs-custom">
                                            <!-- Tabs within a box -->
                                            <div class="tab-content no-padding">
                                                <!-- Morris chart - Sales -->
                                                <div class="chart tab-pane active" id="passengerFlow_add"
                                                     style="position: relative; height: 270px;"></div>
                                            </div>
                                        </div>
                                        <!-- /.nav-tabs-custom -->
                                    </section>
                                </div>
                                <!-- The timeline 收账分析 end -->
                            </div>
                            <!-- /.tab-pane -->
                            <div class="tab-pane" id="timeline">
                                <!-- The timeline 收账分析 -->
                                <div class="row record_rows" style="background: #f4f5f9;">
                                    <!-- select -->
                                    <div class="form-group col-md-2">
                                        <select class="form-control">
                                            <option>option 1</option>
                                            <option>option 2</option>
                                            <option>option 3</option>
                                            <option>option 4</option>
                                            <option>option 5</option>
                                        </select>
                                    </div>
                                    <!-- Date range -->
                                    <div class="form-group col-md-3">
                                        <div class="input-group">
                                            <div class="input-group-addon">
                                                <i class="fa fa-calendar"></i>
                                            </div>
                                            <input type="text" class="form-control pull-right" id="reservation2">
                                        </div>
                                        <!-- /.input group -->
                                    </div>
                                    <button type="button" class="btn btn-block btn-success btn-flat btn_select">按时间对比
                                    </button>
                                </div>
                                <div class="row">
                                    <section class="col-lg-12 connectedSortable">
                                        <!-- Custom tabs (Charts with tabs)-->
                                        <div class="nav-tabs-custom">
                                            <!-- Tabs within a box -->
                                            <div class="tab-content no-padding">
                                                <!-- Morris chart - Sales -->
                                                <div class="chart tab-pane active" id="passengerFlow_dormancy"
                                                     style="position: relative; height: 270px;"></div>
                                            </div>
                                        </div>
                                        <!-- /.nav-tabs-custom -->
                                    </section>
                                </div>
                                <!-- The timeline 收账分析 end -->
                            </div>
                            <!-- /.tab-pane -->
                            <div class="tab-pane" id="thirthline">
                                <!-- The timeline 收账分析 -->
                                <div class="row record_rows" style="background: #f4f5f9;">
                                    <!-- select -->
                                    <div class="form-group col-md-2">
                                        <select class="form-control">
                                            <option>option 1</option>
                                            <option>option 2</option>
                                            <option>option 3</option>
                                            <option>option 4</option>
                                            <option>option 5</option>
                                        </select>
                                    </div>
                                    <!-- Date range -->
                                    <div class="form-group col-md-3">
                                        <div class="input-group">
                                            <div class="input-group-addon">
                                                <i class="fa fa-calendar"></i>
                                            </div>
                                            <input type="text" class="form-control pull-right" id="reservation3">
                                        </div>
                                        <!-- /.input group -->
                                    </div>
                                    <button type="button" class="btn btn-block btn-success btn-flat btn_select">按时间对比
                                    </button>
                                </div>
                                <div class="row">
                                    <section class="col-lg-12 connectedSortable">
                                        <!-- Custom tabs (Charts with tabs)-->
                                        <div class="nav-tabs-custom">
                                            <!-- Tabs within a box -->
                                            <div class="tab-content no-padding">
                                                <!-- Morris chart - Sales -->
                                                <div class="chart tab-pane active" id="passengerFlow_accu"
                                                     style="position: relative; height: 270px;"></div>
                                            </div>
                                        </div>
                                        <!-- /.nav-tabs-custom -->
                                        <!-- Custom tabs (Charts with tabs)-->
                                        <!-- /.nav-tabs-custom -->
                                    </section>
                                </div>
                                <!-- The timeline 收账分析 end -->
                            </div>
                        </div>
                        <!-- /.tab-content -->
                    </div>
                    <!-- /.nav-tabs-custom -->
                </div>
                <!-- /.col -->
                <div class="col-md-12">
                    <!-- Custom tabs (Charts with tabs)-->
                    <div class="nav-tabs-custom">
                        <!-- Tabs within a box -->
                        <ul class="nav nav-tabs bg_gray navtabul" style="height: 46px;">
                            <li class="pull-left header col-md-3">
                                客户概况
                            </li>
                        </ul>
                        <div class="tab_content_box">
                            <div class="tab-content-l col-md-12 active" id="tabchild1">
                                <div class="fl col-md-6 border-r-f3">
                                    <div class="chart " id="piechart_customer_add"
                                         style="position: relative; height: 300px;"></div>
                                </div>
                                <div class="fr col-md-6">
                                    <div class="chart " id="piechart_sex_add"
                                         style="position: relative; height: 300px;"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.nav-tabs-custom -->
                </div>
            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="../../bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<!-- date-range-picker -->
<script src="../../bower_components/moment/min/moment.min.js"></script>
<script src="../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- bootstrap datepicker -->
<script src="../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- ChartJS -->
<script src="../../dist/js/echarts-all-3.js"></script>

<script>
    $(function () {
        $('#header').load('../common/header.html');
        //Date picker
        $('#datepicker').datepicker({
            autoclose: true
        })
        $('#datepicker2').datepicker({
            autoclose: true
        })
    })
    $('#reservation').daterangepicker();
    $('#reservation2').daterangepicker();
    $('#reservation3').daterangepicker();
    $('#reservation_weekly').daterangepicker();
</script>
<script type="text/javascript">
    // var businessTodayCharts = echarts.init(document.getElementById('line-charts')); // 今日营业情况 begin
    var passengerFlowCharts = echarts.init(document.getElementById('passengerFlow_add')); //今日客流情况折线图--新增
    var passengerFlow_dormancy = echarts.init(document.getElementById('passengerFlow_dormancy')); //今日客流情况折线图--休眠
    var passengerFlow_accu = echarts.init(document.getElementById('passengerFlow_accu')); //今日客流情况折线图--累计
    var piechart_customer = echarts.init(document.getElementById('piechart_customer_add'));//客户分布--新增

    var piechart_sex = echarts.init(document.getElementById('piechart_sex_add'));//性别分布--新增
    var colors = ['#02c1b2'];
    var colors2 = ['#534bfb', '#5992f3', '#db3d6e', '#fd9c34'];
    var colors3 = ['#fd9c34', '#5992f3']
    // 折线图
    option_passengerFlow = {
        color: colors,
        tooltip: {
            trigger: 'none',
            axisPointer: {
                type: 'cross'
            }
        },
        grid: {
            top: 50,
            bottom: 50,
            left: '5%',
            right: '3%',
        },
        xAxis: [{
            type: 'category',
            axisTick: {
                alignWithLabel: true
            },
            axisLine: {
                onZero: false,
                lineStyle: {
                    color: colors[0]
                }
            },
            axisPointer: {
                label: {
                    formatter: function (params) {
                        return '今日营业情况  ' + params.value + '：' + params.seriesData[0].data;
                    }
                }
            },
            data: ["2018/5/1", "2018/5/5", "2018/5/10", "2018/5/15", "2018/5/20", "2018/5/25", "2018/5/30"]
        },],
        yAxis: [{
            type: 'value'
        }],
        series: [{
            // name: '2016 降水量',
            type: 'line',
            smooth: true,
            data: [560, 800, 1300, 300, 200, 400, 800]
        }]
    };
    //客户分布
    option_piechart_customer = {
        color: colors2,
        grid: {
            left: '3%',
            right: '6%',
            bottom: '8%',
            top: '10%',
            containLabel: true
        },
        title: {
            text: '客户分布',
//			subtext: '纯属虚构',
            x: 'center',
            y: 'center',
//            left:'15px',
//            top:'15px',
            textStyle: {
                fontSize: '17',
                color: '#333',
                fontWeight: 'normal'
            }
        },
        tooltip: {
            trigger: 'item',
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },
        legend: {
            orient: 'vertical',
            right: '15px',
            top: '15px',
//            data: ['离线','关闭','开启']
        },
        series: [
            {
                name: '访问来源',
                type: 'pie',
                radius: ['30%', '70%'],
                center: ['50%', '50%'],
                data: [
                    {value: 335, name: '青铜会员'},
                    {value: 310, name: '白银会员'},
                    {value: 234, name: '黄金会员'},
                    {value: 234, name: '铂金会员'}
                ],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };
    //性别分布
    option_piechart_sex = {
        color: colors3,
        grid: {
            left: '3%',
            right: '6%',
            bottom: '8%',
            top: '10%',
            containLabel: true
        },
        title: {
            text: '性别分布',
//			subtext: '纯属虚构',
            x: 'center',
            y: 'center',
//            left:'15px',
//            top:'15px',
            textStyle: {
                fontSize: '17',
                color: '#333',
                fontWeight: 'normal'
            }
        },
        tooltip: {
            trigger: 'item',
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },
        legend: {
            orient: 'vertical',
            right: '15px',
            top: '15px',
//            data: ['离线','关闭','开启']
        },
        series: [
            {
                name: '访问来源',
                type: 'pie',
                radius: ['30%', '70%'],
                center: ['50%', '50%'],
                data: [
                    {value: 335, name: '女'},
                    {value: 310, name: '男'},

                ],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };
    // 为echarts对象加载数据
    passengerFlowCharts.setOption(option_passengerFlow); //今日客流情况
    passengerFlow_dormancy.setOption(option_passengerFlow); //今日客流情况
    passengerFlow_accu.setOption(option_passengerFlow); //今日客流情况
    piechart_customer.setOption(option_piechart_customer);
    piechart_sex.setOption(option_piechart_sex);
    // 今日营业情况 begin
</script>
</body>

</html>